

<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
  <meta charset="utf-8">
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  
  <title>Ressources &mdash; COSIPY Model</title>
  

  
  
  
  

  
  <script type="text/javascript" src="_static/js/modernizr.min.js"></script>
  
    
      <script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
        <script type="text/javascript" src="_static/jquery.js"></script>
        <script type="text/javascript" src="_static/underscore.js"></script>
        <script type="text/javascript" src="_static/doctools.js"></script>
        <script type="text/javascript" src="_static/language_data.js"></script>
        <script async="async" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS-MML_HTMLorMML"></script>
    
    <script type="text/javascript" src="_static/js/theme.js"></script>

    

  
  <link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
  <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    <link rel="index" title="Index" href="genindex.html" />
    <link rel="search" title="Search" href="search.html" />
    <link rel="next" title="API" href="api.html" />
    <link rel="prev" title="Getting started" href="Documentation.html" /> 
</head>

<body class="wy-body-for-nav">

   
  <div class="wy-grid-for-nav">
    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search" >
          

          
            <a href="index.html" class="icon icon-home"> COSIPY
          

          
            
            <img src="_static/cosipy_logo_transparent.png" class="logo" alt="Logo"/>
          
          </a>

          
            
            
              <div class="version">
                v1.1
              </div>
            
          

          
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="search.html" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>

          
        </div>

        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <p class="caption"><span class="caption-text">Dokumentation</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="Documentation.html">Getting started</a></li>
</ul>
<p class="caption"><span class="caption-text">Ressources</span></p>
<ul class="current">
<li class="toctree-l1 current"><a class="current reference internal" href="#">Ressources</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#input-data">Input data</a></li>
<li class="toctree-l2"><a class="reference internal" href="#static-fields">Static fields</a></li>
<li class="toctree-l2"><a class="reference internal" href="#output-data">Output data</a></li>
<li class="toctree-l2"><a class="reference internal" href="#directory-structure">Directory structure</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="api.html">API</a></li>
</ul>

            
          
        </div>
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="index.html">COSIPY</a>
        
      </nav>


      <div class="wy-nav-content">
        
        <div class="rst-content">
        
          















<div role="navigation" aria-label="breadcrumbs navigation">

  <ul class="wy-breadcrumbs">
    
      <li><a href="index.html">Docs</a> &raquo;</li>
        
      <li>Ressources</li>
    
    
      <li class="wy-breadcrumbs-aside">
        
            
            <a href="_sources/Ressources.rst.txt" rel="nofollow"> View page source</a>
          
        
      </li>
    
  </ul>

  
  <hr/>
</div>
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
  <div class="section" id="ressources">
<span id="id1"></span><h1>Ressources<a class="headerlink" href="#ressources" title="Permalink to this headline">¶</a></h1>
<div class="section" id="input-data">
<span id="input"></span><h2>Input data<a class="headerlink" href="#input-data" title="Permalink to this headline">¶</a></h2>
<table class="docutils align-default">
<colgroup>
<col style="width: 33%" />
<col style="width: 15%" />
<col style="width: 28%" />
<col style="width: 25%" />
</colgroup>
<thead>
<tr class="row-odd"><th class="head"><p>Variable</p></th>
<th class="head"><p>Short name</p></th>
<th class="head"><p>Unit</p></th>
<th class="head"><p>Comment</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p>Air pressure</p></td>
<td><p>PRES</p></td>
<td><p>hPa</p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>Air temperature</p></td>
<td><p>T2</p></td>
<td><p>K</p></td>
<td></td>
</tr>
<tr class="row-even"><td><p>Cloud cover</p></td>
<td><p>N</p></td>
<td><ul class="simple">
<li></li>
</ul>
</td>
<td></td>
</tr>
<tr class="row-odd"><td><p>Relative humidity</p></td>
<td><p>RH2</p></td>
<td><p>%/100</p></td>
<td></td>
</tr>
<tr class="row-even"><td><p>Solar radiation</p></td>
<td><p>G</p></td>
<td><p>W <span class="math notranslate nohighlight">\(\text{m}^2\)</span></p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>Total precipitation</p></td>
<td><p>RRR</p></td>
<td><p>mm</p></td>
<td></td>
</tr>
<tr class="row-even"><td><p>Wind speed</p></td>
<td><p>U2</p></td>
<td><p>m <span class="math notranslate nohighlight">\(\text{s}^{-1}\)</span></p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>Snowfall</p></td>
<td><p>SNOWFALL</p></td>
<td><p>m</p></td>
<td><p>optional</p></td>
</tr>
<tr class="row-even"><td><p>Incoming longwave radiation</p></td>
<td><p>LWin</p></td>
<td><p>W <span class="math notranslate nohighlight">\(\text{m}^2\)</span></p></td>
<td><p>optional, replaces N</p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="static-fields">
<span id="static"></span><h2>Static fields<a class="headerlink" href="#static-fields" title="Permalink to this headline">¶</a></h2>
<table class="docutils align-default">
<colgroup>
<col style="width: 35%" />
<col style="width: 16%" />
<col style="width: 22%" />
<col style="width: 27%" />
</colgroup>
<thead>
<tr class="row-odd"><th class="head"><p>Variable</p></th>
<th class="head"><p>Short name</p></th>
<th class="head"><p>Unit</p></th>
<th class="head"><p>Comment</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p>Glacier mask</p></td>
<td><p>MASK</p></td>
<td><p>Boolean</p></td>
<td><p>True == glacier</p></td>
</tr>
<tr class="row-odd"><td><p>Elevation</p></td>
<td><p>HGT</p></td>
<td><p>m</p></td>
<td></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="output-data">
<span id="output"></span><h2>Output data<a class="headerlink" href="#output-data" title="Permalink to this headline">¶</a></h2>
<table class="docutils align-default">
<colgroup>
<col style="width: 29%" />
<col style="width: 24%" />
<col style="width: 26%" />
<col style="width: 21%" />
</colgroup>
<thead>
<tr class="row-odd"><th class="head"><p>Variable</p></th>
<th class="head"><p>Short name</p></th>
<th class="head"><p>Unit</p></th>
<th class="head"><p>Comment</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p>Incoming shortwave radiation</p></td>
<td><p>SWin</p></td>
<td><p>W <span class="math notranslate nohighlight">\(\text{m}^{-2}\)</span></p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>Outgoing shortwave radiation</p></td>
<td><p>SWout</p></td>
<td><p>W <span class="math notranslate nohighlight">\(\text{m}^{-2}\)</span></p></td>
<td></td>
</tr>
<tr class="row-even"><td><p>Liquid precipitation</p></td>
<td><p>RAIN</p></td>
<td><p>mm</p></td>
<td><p>requires RRR</p></td>
</tr>
<tr class="row-odd"><td><p>Snowfall</p></td>
<td><p>SNOWFALL</p></td>
<td><p>mm</p></td>
<td></td>
</tr>
<tr class="row-even"><td><p>Sensible heat flux</p></td>
<td><p>H</p></td>
<td><p>W <span class="math notranslate nohighlight">\(\text{m}^{-2}\)</span></p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>Latent heat flux</p></td>
<td><p>LE</p></td>
<td><p>W <span class="math notranslate nohighlight">\(\text{m}^{-2}\)</span></p></td>
<td></td>
</tr>
<tr class="row-even"><td><p>Ground heat flux</p></td>
<td><p>G</p></td>
<td><p>W <span class="math notranslate nohighlight">\(\text{m}^{-2}\)</span></p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>Mass balance</p></td>
<td><p>MB</p></td>
<td><p>m w.e.</p></td>
<td></td>
</tr>
<tr class="row-even"><td><p>Surface mass balance</p></td>
<td><p>SMB</p></td>
<td><p>m w.e.</p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>Internal mass balance</p></td>
<td><p>IMB</p></td>
<td><p>m w.e.</p></td>
<td></td>
</tr>
<tr class="row-even"><td><p>Runoff</p></td>
<td><p>Q</p></td>
<td><p>m w.e.</p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>Snowheight</p></td>
<td><p>SNOWHEIGHT</p></td>
<td><p>m</p></td>
<td></td>
</tr>
<tr class="row-even"><td><p>Total height</p></td>
<td><p>TOTALHEIGHT</p></td>
<td><p>m</p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>Surface temperature</p></td>
<td><p>TS</p></td>
<td><p>K</p></td>
<td></td>
</tr>
<tr class="row-even"><td><p>Albedo</p></td>
<td><p>ALBEDO</p></td>
<td><ul class="simple">
<li></li>
</ul>
</td>
<td></td>
</tr>
<tr class="row-odd"><td><p>Number of layers</p></td>
<td><p>NLAYERS</p></td>
<td><ul class="simple">
<li></li>
</ul>
</td>
<td></td>
</tr>
<tr class="row-even"><td><p>Available melt energy</p></td>
<td><p>ME</p></td>
<td><p>W <span class="math notranslate nohighlight">\(\text{m}^{-2}\)</span></p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>Evaporation</p></td>
<td><p>EVAPORATION</p></td>
<td><p>m w.e.</p></td>
<td></td>
</tr>
<tr class="row-even"><td><p>Condensation</p></td>
<td><p>CONDENSATION</p></td>
<td><p>m w.e.</p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>Sublimation</p></td>
<td><p>SUBLIMATION</p></td>
<td><p>m w.e.</p></td>
<td></td>
</tr>
<tr class="row-even"><td><p>Deposition</p></td>
<td><p>DEPOSITION</p></td>
<td><p>m w.e.</p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>Refreezing</p></td>
<td><p>REFREEZING</p></td>
<td><p>m w.e.</p></td>
<td></td>
</tr>
<tr class="row-even"><td><p>Subsurface melt</p></td>
<td><p>subM</p></td>
<td><p>m w.e.</p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>Surface melt</p></td>
<td><p>surfM</p></td>
<td><p>m w.e.</p></td>
<td></td>
</tr>
<tr class="row-even"><td><p>Aerodynamic roughness length</p></td>
<td><p>z0v</p></td>
<td><p>m</p></td>
<td></td>
</tr>
<tr class="row-odd"><td><p>Snow layer Height</p></td>
<td><p>LAYER_HEIGHT</p></td>
<td><p>m</p></td>
<td><p>Profile</p></td>
</tr>
<tr class="row-even"><td><p>Temperature of snow layers</p></td>
<td><p>LAYER_T</p></td>
<td><p>m</p></td>
<td><p>Profile</p></td>
</tr>
<tr class="row-odd"><td><p>Snow density of layers</p></td>
<td><p>LAYER_RHO</p></td>
<td><p>kg <span class="math notranslate nohighlight">\(\text{m}^{-3}i\)</span></p></td>
<td><p>Profile</p></td>
</tr>
<tr class="row-even"><td><p>Ice fraction</p></td>
<td><p>LAYER_ICE_FRACTION</p></td>
<td><ul class="simple">
<li></li>
</ul>
</td>
<td><p>Profile</p></td>
</tr>
<tr class="row-odd"><td><p>Porosity</p></td>
<td><p>LAYER_POROSITY</p></td>
<td><ul class="simple">
<li></li>
</ul>
</td>
<td><p>Profile</p></td>
</tr>
<tr class="row-even"><td><p>Liquid water content</p></td>
<td><p>LAYER_LWC</p></td>
<td><ul class="simple">
<li></li>
</ul>
</td>
<td><p>Profile</p></td>
</tr>
<tr class="row-odd"><td><p>Irreducible water</p></td>
<td><p>LAYER_IRREDUCIBLE_WATER</p></td>
<td><ul class="simple">
<li></li>
</ul>
</td>
<td><p>Profile</p></td>
</tr>
<tr class="row-even"><td><p>Liquid water in layers</p></td>
<td><p>LAYER_LW</p></td>
<td><p>m w.e.</p></td>
<td><p>Profile</p></td>
</tr>
<tr class="row-odd"><td><p>Refreezing</p></td>
<td><p>LAYER_REFREEZE</p></td>
<td><p>m w.e.</p></td>
<td><p>Profile</p></td>
</tr>
<tr class="row-even"><td><p>Cold content</p></td>
<td><p>LAYER_CC</p></td>
<td><p>J <span class="math notranslate nohighlight">\(\text{m}^{-2}\)</span></p></td>
<td><p>Profile</p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="directory-structure">
<span id="directories"></span><h2>Directory structure<a class="headerlink" href="#directory-structure" title="Permalink to this headline">¶</a></h2>
<table class="docutils align-default">
<colgroup>
<col style="width: 18%" />
<col style="width: 30%" />
<col style="width: 53%" />
</colgroup>
<thead>
<tr class="row-odd"><th class="head"><p>Directory</p></th>
<th class="head"><p>File</p></th>
<th class="head"><p>Description</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p>./</p></td>
<td><p>COSIPY.py</p></td>
<td><p>Main program</p></td>
</tr>
<tr class="row-odd"><td></td>
<td><p>config.py</p></td>
<td><p>Configuration file</p></td>
</tr>
<tr class="row-even"><td></td>
<td><p>constants.py</p></td>
<td><p>Constants file</p></td>
</tr>
<tr class="row-odd"><td></td>
<td><p>cosipy.yaml</p></td>
<td><p>Cosipy logging configuration file</p></td>
</tr>
<tr class="row-even"><td></td>
<td><p>README.md</p></td>
<td><p>Readme file</p></td>
</tr>
<tr class="row-odd"><td></td>
<td><p>slurm_config.py</p></td>
<td><p>SLURM Workload Manager configuration file</p></td>
</tr>
<tr class="row-even"><td><p>./cpkernel</p></td>
<td><p>cosipy_core.py</p></td>
<td><p>Solves the 1D simulations</p></td>
</tr>
<tr class="row-odd"><td></td>
<td><p>init.py</p></td>
<td><p>Initialisation of the snowpack</p></td>
</tr>
<tr class="row-even"><td></td>
<td><p>grid.py</p></td>
<td><p>GRID class</p></td>
</tr>
<tr class="row-odd"><td></td>
<td><p>io.py</p></td>
<td><p>IO class</p></td>
</tr>
<tr class="row-even"><td></td>
<td><p>node.py</p></td>
<td><p>Node class</p></td>
</tr>
<tr class="row-odd"><td><p>./dask-worker-space</p></td>
<td></td>
<td><p>Folder needed for parallel computing and resulting log files</p></td>
</tr>
<tr class="row-even"><td><p>./data</p></td>
<td><p>input/Zhadang_ERA5_2009_2018.csv</p></td>
<td><p>Example meteo data (tutorial)</p></td>
</tr>
<tr class="row-odd"><td></td>
<td><p>input/Zhadang_ERA5_2009.nc</p></td>
<td><p>Example cosipy input file (tutorial)</p></td>
</tr>
<tr class="row-even"><td></td>
<td><p>output/</p></td>
<td><p>Output files (automatically created)</p></td>
</tr>
<tr class="row-odd"><td></td>
<td><p>restart/</p></td>
<td><p>Restart files (automatically created)</p></td>
</tr>
<tr class="row-even"><td></td>
<td><p>static/static.nc</p></td>
<td><p>Example cosipy static file (tutorial)</p></td>
</tr>
<tr class="row-odd"><td></td>
<td><p>static/DEM/n30_e090_3arc_v2.tif</p></td>
<td><p>Example dem file (tutorial)</p></td>
</tr>
<tr class="row-even"><td></td>
<td><p>static/Shapefiles/Zhadang_RGI6.*</p></td>
<td><p>Example rgi6 glacier outline (tutorial)</p></td>
</tr>
<tr class="row-odd"><td><p>./modules</p></td>
<td><p>albedo.py</p></td>
<td><p>Albedo module</p></td>
</tr>
<tr class="row-even"><td></td>
<td><p>densification.py</p></td>
<td><p>Densification module</p></td>
</tr>
<tr class="row-odd"><td></td>
<td><p>heatEquation.py</p></td>
<td><p>Solves the heat equation</p></td>
</tr>
<tr class="row-even"><td></td>
<td><p>penetratingRadiation.py</p></td>
<td><p>Penetrating radiation module</p></td>
</tr>
<tr class="row-odd"><td></td>
<td><p>percolation.py</p></td>
<td><p>Percolation module</p></td>
</tr>
<tr class="row-even"><td></td>
<td><p>radCor.py</p></td>
<td><p>Radiation module (used for preprocessing)</p></td>
</tr>
<tr class="row-odd"><td></td>
<td><p>refreezing.py</p></td>
<td><p>Refreezing of water</p></td>
</tr>
<tr class="row-even"><td></td>
<td><p>roughness.py</p></td>
<td><p>Roughness parametrisation</p></td>
</tr>
<tr class="row-odd"><td></td>
<td><p>surfaceTemperature.py</p></td>
<td><p>Solves the surface energy balance / surface temperature</p></td>
</tr>
<tr class="row-even"><td><p>./postprocessing</p></td>
<td><p>plot_cosipy_fields.py</p></td>
<td><p>Quick visualisation of results</p></td>
</tr>
<tr class="row-odd"><td><p>./utilities</p></td>
<td><p>aws2cosipy/aws2cosipy.py</p></td>
<td><p>Creates a coispy input file from a data file</p></td>
</tr>
<tr class="row-even"><td></td>
<td><p>aws2cosipy/aws2cosipyConfig.py</p></td>
<td><p>Configuration file for the utility aws_logger2cosipy</p></td>
</tr>
<tr class="row-odd"><td></td>
<td><p>createStatic/create_static_file.py</p></td>
<td><p>Utility to create the static input data</p></td>
</tr>
<tr class="row-even"><td></td>
<td><p>wrf2cosipy/wrf2cosipy.py</p></td>
<td><p>Create an input file from WRF model output</p></td>
</tr>
<tr class="row-odd"><td></td>
<td><p>wrf2cosipy/config.py</p></td>
<td><p>Configuration file for the utility wrf2cosipy</p></td>
</tr>
</tbody>
</table>
</div>
</div>


           </div>
           
          </div>
          <footer>
  
    <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
      
        <a href="api.html" class="btn btn-neutral float-right" title="API" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
      
      
        <a href="Documentation.html" class="btn btn-neutral float-left" title="Getting started" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
      
    </div>
  

  <hr/>

  <div role="contentinfo">
    <p>
        &copy; Copyright 2019-2019, COSIPY Developer

    </p>
  </div>
  Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. 

</footer>

        </div>
      </div>

    </section>

  </div>
  


  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script>

  
  
    
   

</body>
</html>